<h2><%=t("devise_page.registration.title")%></h2>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <div class="field">
    <%= f.label t("devise_page.registration.email") %><br />
    <%= f.email_field :email, autofocus: true %>
  </div>
  <div class="field">
    <%= f.label t("devise_page.registration.username") %><br />
    <%= f.text_field :username%>
  </div>
  <div class="field">
    <%= f.label t("devise_page.registration.password") %>
    <% if @minimum_password_length %>
    <em><%=t("devise_page.registration.password_limit", m_pwdlength: @minimum_password_length) %></em>
    <% end %><br />
    <%= f.password_field :password, autocomplete: "off" %>
  </div>

  <div class="field">
    <%= f.label t("devise_page.registration.password_confirmation") %><br />
    <%= f.password_field :password_confirmation, autocomplete: "off" %>
  </div>
  <div style="display: none;">
  	<%=f.text_field :authentication_token,:value => generate_authentication_token %>
  </div>

  <div class="actions">
    <%= f.submit t("devise_page.registration.submit") %>
  </div>
<% end %>

<%= render "devise/shared/links" %>
